<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改基础数据')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-componentinfo-edit" th:object="${tbComponentinfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">接收日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input id="receivedDate" name="receivedDate" th:value="${#dates.format(tbComponentinfo.receivedDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试站名称：</label>
                <div class="col-sm-8">
                    <input name="registerNo" th:field="*{registerNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">客户：</label>
                <div class="col-sm-8">
                    <input name="customer" th:field="*{customer}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">客户地址：</label>
                <div class="col-sm-8">
                    <input name="custormerAdd" th:field="*{custormerAdd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试件名称：</label>
                <div class="col-sm-8">
                    <input name="deviceName" th:field="*{deviceName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">制造商：</label>
                <div class="col-sm-8">
                    <input name="manufacturer" th:field="*{manufacturer}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">规格型号：</label>
                <div class="col-sm-8">
                    <input name="model" th:field="*{model}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">序列号：</label>
                <div class="col-sm-8">
                    <input name="partserialNo" th:field="*{partSerialNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试地址：</label>
                <div class="col-sm-8">
                    <input name="testAdd" th:field="*{testAdd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input id="testDate" name="testDate" th:value="${#dates.format(tbComponentinfo.testDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">温度：</label>
                <div class="col-sm-8">
                    <input name="temp" th:field="*{temp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">湿度：</label>
                <div class="col-sm-8">
                    <input name="humidity" th:field="*{humidity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试依据：</label>
                <div class="col-sm-8">
                    <input name="testRef" th:field="*{testRef}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试仪器编号：</label>
                <div class="col-sm-8">
                    <input name="testInsNo" th:field="*{testInsNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试结论：</label>
                <div class="col-sm-8">
                    <input name="conclusion" th:field="*{conclusion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">测试员：</label>
                <div class="col-sm-8">
                    <input name="testedBy" th:field="*{testedBy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">检查员：</label>
                <div class="col-sm-8">
                    <input name="checkedBy" th:field="*{checkedBy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">测试报告编号：</label>
                <div class="col-sm-8">
                    <input name="reportNo" th:field="*{reportNo}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/componentinfo";
        $("#form-componentinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-componentinfo-edit').serialize());
            }
        }

        $("#receivedDate").datetimepicker();
        $("#testDate").datetimepicker();
    </script>
</body>
</html>